You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > VectorInt Structure > VectorInt Methods > BitPack Method > VectorInt.BitPack Method ([In] TMtxVecInt, [In] int, [In] int, [In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
VectorInt.BitPack Method ([In] TMtxVecInt, [In] int, [In] int, [In] int)

Converts Src to packed bit storage.

Syntax
C#
Visual Basic
public TMtxVecInt BitPack([In] TMtxVecInt Src, [In] int SrcIndex, [In] int Index, [In] int Len);

Returns the result of bit packing the Src values [SrcIndex]..[SrcIndex+Len-1] and stored in the calling object bits from [0]..[0+Len-1]. If Len is not divisable with 32, the remaining bits in the last sample are left at 0. The storage precision of the calling object is set to prInt32. The size of the calling object is adjusted automatically. Packing of array with precision other than Int32 is 8x slower.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!